package cn.wk.user.mapper;

import cn.wk.basic.mapper.BaseMapper;
import cn.wk.user.domain.User;

public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据传进来的手机号进行查找
     * @param phone
     * @return 返回一个user对象
     */
    User findByPhone(String phone);

    /**
     * 通过logininfoid获取user
     * @param logininfoId
     * @return
     */
    User findByLogininfoId(Long logininfoId);
}
